interface Person {
  name: string,
  age: number
}
function printName(person:Person) {
  console.log(person.name)
}
const john = {
  name: 'John',
  age: 21
}
const mary = {
}
printName(john)
printName(mary)